<div id="actu1" align="center">
    <div class="titre_home">Nos annonces ( <?php echo $total ?> )</div>
 
    <?php if($total>0){ ?>
    <table width="90%" align="center" class="list">
        <thead>
            <tr>
                <th></th>
                <th>Titre</th>
                <th>Publié le</th>
                <th>Région</th>
            </tr>
        </thead>
<?php foreach ($search_annonce as $aRow): ?>
        <?php
            $pattern = "%d/%m/%Y";
            $date_post = mdate($pattern, $aRow['date_posted']);

            $image_path = './assets/annonce/thumbs/' . $aRow['images'];
            if (file_exists($image_path) && $aRow['images']!=null) {
                $image_path = base_url() . 'assets/annonce/thumbs/' . $aRow['images'];
                $image_path_full = base_url() . 'assets/annonce/' . $aRow['images'];
            } else {
                    $image_path = root_url('animus') . 'assets/noimage.gif';
                    $image_path_full = root_url('animus') . 'assets/noimage.gif';
            }
        ?>
                    <tr>
                        <td><a href="<?php echo $image_path_full?>" id="example5" title=""><img border="0" src="<?php echo $image_path;?>" width="80px"/></a></td>
                        <td><a href="<?php echo site_url('annonce/detail_annonce').'/'.$aRow['id']?>"><?php echo $aRow['title']; ?></a></td>
                        <td><?php echo $date_post; ?></td>
                        <td><?php echo $aRow['sub_region'] ?></td>
                    </tr>
<?php endforeach; ?>
                </table>
    <?php echo $pagination; ?>
        <?php }else{?>
    <div align="center">Aucun résultat!!!</div>
    <?php }?>
</div>
<!--END wrapper-content-->
